<template>
	<view class="store-container">
		<!-- 店铺信息区域 -->
		<view class="store-info">
			<image class="store-avatar" src="/static/default-avatar.png" mode="aspectFill"></image>
			<view class="store-details">
				<text class="store-name">店铺昵称</text>
				<text class="store-id">ID: 123456</text>
			</view>
		</view>
		
		<!-- 内容区域 -->
		<view class="content-section">
			<!-- 选项卡导航 -->
			<view class="tab-nav">
				<view 
					class="tab-item" 
					:class="{ active: activeTab === 'auction' }"
					@click="switchTab('auction')"
				>
					<text>福利拍卖</text>
				</view>
				<view 
					class="tab-item" 
					:class="{ active: activeTab === 'goods' }"
					@click="switchTab('goods')"
				>
					<text>店铺好物</text>
				</view>
			</view>
			
			<!-- 选项卡内容 -->
			<view class="tab-content">
				<view v-if="activeTab === 'auction'" class="auction-list">
					<!-- 福利拍卖内容 -->
				</view>
				<view v-if="activeTab === 'goods'" class="goods-list">
					<!-- 店铺好物内容 -->
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			activeTab: 'auction' // 默认显示福利拍卖
		}
	},
	methods: {
		switchTab(tab) {
			this.activeTab = tab
		}
	}
}
</script>

<style>
.store-container {
	padding: 24rpx;
	background-color: #f8f8f8;
	min-height: 100vh;
}

.store-info {
	display: flex;
	align-items: center;
	padding: 32rpx;
	background-color: #ffffff;
	border-radius: 20rpx;
	margin-bottom: 24rpx;
	box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
}

.store-avatar {
	width: 140rpx;
	height: 140rpx;
	border-radius: 50%;
	margin-right: 24rpx;
	border: 4rpx solid #fff;
	box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.1);
}

.store-details {
	display: flex;
	flex-direction: column;
}

.store-name {
	font-size: 36rpx;
	font-weight: bold;
	margin-bottom: 12rpx;
	color: #333;
}

.store-id {
	font-size: 26rpx;
	color: #999;
	background-color: #f5f5f5;
	padding: 4rpx 16rpx;
	border-radius: 20rpx;
	display: inline-block;
}

.content-section {
	background-color: #ffffff;
	border-radius: 20rpx;
	box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.tab-nav {
	display: flex;
	border-bottom: 1rpx solid #f0f0f0;
	background-color: #fff;
}

.tab-item {
	flex: 1;
	text-align: center;
	padding: 28rpx 0;
	position: relative;
	transition: all 0.3s ease;
}

.tab-item text {
	font-size: 30rpx;
	color: #666;
	transition: all 0.3s ease;
}

.tab-item.active text {
	color: #FF6B00;
	font-weight: bold;
}

.tab-item.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 48rpx;
	height: 6rpx;
	background-color: #FF6B00;
	border-radius: 3rpx;
	transition: all 0.3s ease;
}

.tab-content {
	padding: 24rpx;
}

.auction-list, .goods-list {
	min-height: 300rpx;
	background-color: #fff;
}

/* 添加hover效果 */
.tab-item:active {
	background-color: rgba(255, 107, 0, 0.05);
}
</style>